﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customers.master" AutoEventWireup="true" CodeFile="GioHang.aspx.cs" Inherits="GioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br /><br />
 <div id="GridGioHang" runat="server">
 
        <asp:GridView DataKeyNames="Mã Sản Phẩm" ID="GridView1" runat="server" OnRowDeleting="GridView1_RowDeleting"
            CssClass="pgGioHang" AutoGenerateColumns="false" EmptyDataText="KHÔNG CÓ SẢN PHẨM TRONG GIỎ HÀNG">
            <Columns>
                <asp:BoundField DataField="Mã Sản Phẩm" HeaderText="Mã Sản Phẩm" />
                <asp:BoundField DataField="Tên Sản Phẩm" HeaderText="Tên Sản Phẩm" />
                <asp:TemplateField HeaderText="Số Lượng">
                    <ItemTemplate>
                        <asp:TextBox ID="txtSoLuong" runat="server" Text='<%# Eval("Số Lượng") %>' Width="70px"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtSoLuong"
                            ErrorMessage="Lỗi Số Lượng" Operator="GreaterThan" Type="Integer" ValueToCompare="0"></asp:CompareValidator>
                    </ItemTemplate>
                    <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                </asp:TemplateField>
                <asp:BoundField DataField="Đơn Giá" HeaderText="Đơn Giá" />
                <asp:BoundField DataField="Thành Tiền" HeaderText="Thành Tiền" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
        <br />
     <div id="AnBtnThangBao" runat="server">
        <font face="Verdana, Geneva, sans-serif" >Đồng ý Đặt Hàng:</font><asp:CheckBox ID="CheckBox1" runat="server" />
        <asp:Label ID="lblTongCong" runat="server" Text="" CssClass="lblTongTien"></asp:Label><br />
     <asp:Label ID="ThongBao1" runat="server" Text=" "></asp:Label>
        <table style="margin-top: 10px; border-style: none" >
            <tr>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click"
                        CssClass="myButton" />
                </td>
                <td style="padding-left: 30px">
                    <asp:Button ID="btnDatHang" runat="server" Text="Đặt hàng" CssClass="myButton" OnClick="btnDatHang_Click" />
                </td>
                <td style="padding-left: 30px">
                    <asp:Button ID="btnXoa" runat="server" Text="Xóa Giỏ Hàng" CssClass="myButton" OnClick="btnXoa_Click" />
                </td>
            </tr>
        </table>
    </div>
     </div>
    <div id="dathang" runat="server">
        <p> Đặt Hàng</p>
        <table class="TTUser">
            <tr>
                <td class="td-User">Account</td>
                <td>
                    <asp:TextBox ID="dhAccount" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td-User">Địa Chỉ Giao Hàng</td>
                <td>
                    <asp:TextBox ID="dhDIachigiaohang" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="td-User">Số Điện Thoại </td>
                <td>
                    <asp:TextBox ID="dhSODTLL" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="td-User">Tổng Thành Tiền</td>
                <td>
                    <asp:Label ID="dhTongThanhTien" runat="server" Text=" "></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td-User">Kiểm Tra</td>
                <td>
                    <asp:CheckBox ID="CheckBox2" runat="server" />
                </td>
            </tr>
            <tr>
                <td> </td>
                <td>
                    <asp:Button ID="GuiDangHang" runat="server" Text="Gửi Đặt Hàng" CssClass="myButton" OnClick="GuiDangHang_Click" />
                    <asp:Label ID="thongbao2" runat="server" Text=" "></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

